package com.wlw.enums;

public enum AppUserExceptionEnum {
    /**
     * 用户名重复
     */
    INVALID_USERNAME_REPEAT(1001,"号码已经存在了"),
    INVALID_USERNAME_NO(1002,"账号或者密码错误"),
    INVALID_USERNAME_frozen(1003,"账号已经被冻结"),
    INVALID_JFH(1004,"只能修改一次"),
    INVALID_JFH_FULL(1005,"不能为空"),
    INVALID_JFH_UPDATE(1006,"修改出错"),
    INVALID_CODE_ERROR(1007,"验证码错误"),
    INVALID_NO_FRIENDS(1008,"对方已经开启了好友验证，请加对方好友"),
    INVALID_NO_GROUPADMIN(1009,"不是群主无法操作"),
    END(9999,"END");

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    AppUserExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }}

